<form action="{{excel}}" nz-form style="display:inline-block;" (ngSubmit)="downloadTemplate()">
  <button nz-button [nzType]="'primary'" type="submit" [nzSize]="size" >
    <i class="anticon anticon-download"></i><span>下载模板</span>
  </button>
</form>
<button nz-button [nzType]="'primary'" (click)="openImportModal()">
  <span>
    <i class="anticon anticon-file-add"></i>导入</span>
</button>
<!-- <button nz-button [nzType]="'primary'" (click)="addModal()">
        <span><i class="anticon anticon-plus"></i>添加</span>
      </button> -->
<button nz-button [nzType]="'danger'" (click)="delete()">
  <span>
    <i class="anticon anticon-delete"></i>删除</span>
</button>

<nz-input [nzType]="'search'" [nzPlaceHolder]="'请输入查询条件'" [(ngModel)]="_value" style="margin-bottom:20px;width:200px;" class="right"
  (nzOnSearch)="onSearch($event)"></nz-input>


<nz-table #nzTable [nzDataSource]="_dataSet" [nzPageSize]="7" nzShowSizeChanger>
  <thead nz-thead>
    <tr>
      <th nz-th nzCheckbox>
        <label nz-checkbox [(ngModel)]="_allChecked" [nzIndeterminate]="_indeterminate" (ngModelChange)="_checkAll($event)">
        </label>
      </th>
      <th nz-th>
        <span>姓名</span>
      </th>
      <th nz-th>
        <span>昵称</span>
      </th>
      <th nz-th>
        <span>电话号码</span>
      </th>
      <th nz-th>
        <span>信用</span>
      </th>
    </tr>
  </thead>
  <tbody nz-tbody>
    <tr nz-tbody-tr *ngFor="let data of nzTable.data">
      <td nz-td nzCheckbox>
        <label nz-checkbox [(ngModel)]="data.checked" (ngModelChange)="_refreshStatus($event)">
        </label>
      </td>
      <td nz-td>
        <a>{{data.name}}</a>
      </td>
      <td nz-td>{{data.nickName}}</td>
      <td nz-td>{{data.phone}}</td>
      <td nz-td>{{data.zmScore}}</td>

    </tr>
  </tbody>
</nz-table>